package com.example.therDays.ui.components.prediction


import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.example.therDays.ui.model.entity.PredictionModel

@Composable
fun Prediction(PredictionList : List<PredictionModel>) {

        Column(modifier = Modifier
            .fillMaxWidth()
            .padding(horizontal = 10.dp)) {
            Text(text = "天气情况", style = TextStyle(
                fontSize = 22.sp),
                modifier = Modifier.padding(6.dp)
            )
            LazyRow(){
                items(PredictionList){
                    PredictionItem(predictionModel = it)
                }
            }
        }

}



